package com.wuwei.aliocr.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;

/**
 * <p>
 * 保存题目信息的表，不管是机型题，基础执照题，还是英语题，都保存在该表中
 * </p>
 *
 * @author wuwei
 * @since 2024-01-20
 */
@Data
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private String subject;

    @ExcelIgnore
    private String chapter;

    @ExcelIgnore
    private String subChapter;

    @ExcelProperty("问题")
    private String question;

    @ExcelProperty("选项1")
    private String item1;

    @ExcelProperty("选项2")
    private String item2;

    @ExcelProperty("选项3")
    private String item3;

    @ExcelProperty("选项4")
    private String item4;

    @ExcelProperty("正确答案")
    private String answer;

    @ExcelProperty("解析")
    private String remark;



    @Override
    public String toString() {
        return "Question{" +
        "id=" + id +
        ", subject=" + subject +
        ", chapter=" + chapter +
        ", subChapter=" + subChapter +
        ", question=" + question +
        ", item1=" + item1 +
        ", item2=" + item2 +
        ", item3=" + item3 +
        ", item4=" + item4 +
        ", answer=" + answer +
        ", remark=" + remark +
        "}";
    }
}
